package club.cearnach.api.service;

import club.cearnach.entity.Role;

import java.util.List;
import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/5/23 18:09
 */
public interface IRoleService {
    Optional<Role> findByName(String name);

    List<Role> findAll();

    Optional<Role> findById(Integer id);
}
